/* 
 *   Date       Developer   Description
 *   
 *
 *   Classname:  zzz.developers.SpringRoute.domain.BodyDomain
 * 
 *   Date:   2014-3-12
 * 
 *   The source code contained in this listing is proprietary to
 *   HLJ POST YITONG INFO-NET CO.,LTD.
 * 
 *   Unauthorized copying, adaptation, distribution, use, or display
 *   is strictly prohibited.
 *   This software is Copyright 2014 HLJ POST YITONG INFO-NET CO.,LTD.
 */
package com.titan.demo.camel.developers.SpringRoute.domain;

import java.util.HashMap;
import java.util.Map;


/**
 *
 *
 * @author Administrator
 *
 */
public class BodyDomain {
    private Map<String,Object> data = new HashMap<String,Object>();
    private StringBuffer buf = new StringBuffer(1024);
    
    public String toString() {
//        return data==null?"null":data.toString();
        return buf.toString();
    }
    
    public void append(String value) {
        buf.append(">>").append(value);
    }
    public String getValue() {
        return buf.toString();
    }
    public void put(String key, Object value) {
        data.put(key, value);
    }
    public Object get(String key) {
        return data.get(key);
    }
}

